﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListDirectorate.ascx.cs" Inherits="ServicesDirectory.UserControl.ListDirectorate" %>
<link href="../Resources/Css/style-directorate.css" rel="stylesheet" type="text/css" />
<div class="ManagerContentBorder">
    <div class="bgManager">
        <div class="sortList">
            <span>
                <asp:LinkButton runat="server" ID="All" Text="All"></asp:LinkButton>
            </span>| <span>
                <asp:LinkButton runat="server" ID="lbt09" Text="0 - 9"></asp:LinkButton>
            </span>| <span>
                <asp:LinkButton runat="server" ID="lbtA" Text="A B C D E"></asp:LinkButton>
            </span>| <span>
                <asp:LinkButton runat="server" ID="lbtF" Text="F G H I J"></asp:LinkButton>
            </span>| <span>
                <asp:LinkButton runat="server" ID="lbtK" Text="K L M N"></asp:LinkButton>
            </span>| <span>
                <asp:LinkButton runat="server" ID="lbtO" Text="O P Q R"></asp:LinkButton>
            </span>| <span>
                <asp:LinkButton runat="server" ID="lbtS" Text="S T U V"></asp:LinkButton>
            </span>| <span>
                <asp:LinkButton runat="server" ID="lbtW" Text="W X Y Z"></asp:LinkButton>
            </span>
        </div>
        <div style="width: 28%; height: 25px; float: right; padding-top: 5px">
            <asp:Button ID="BtnCreate" runat="server" Text="Create" OnClick="BtnCreate_Click" />
            <asp:CheckBox runat="server" ID="chkInactive" Text=" Include In-Active" AutoPostBack="true" />
        </div>
        <div class="spaceManager">
        </div>
        <div class="contentGrid">
            <div class="hearderGrid">
                <div class="DirectorateHeaderCol1">
                    <asp:LinkButton runat="server" ID="LbtName" Text="Directorate Name"></asp:LinkButton>
                </div>
                <div class="DirectorateHeaderCol2">
                    Office Address Line 1</div>
                <div class="DirectorateHeaderCol3">
                    Postcode</div>
                <div class="DirectorateHeaderCol4">
                    Contact</div>
                <div class="DirectorateHeaderCol5">
                    Is Active?</div>
            </div>
            <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
                <ItemTemplate>
                    <div class="rowGrid">
                        <div class="DirectorateContentCol1">
                            <asp:LinkButton runat="server" ID="LbtName" CommandName="Edit" Text='<%#Eval("Name") %>' CommandArgument='<%#Eval("DirectorateId") %>'></asp:LinkButton></div>
                        <div class="DirectorateContentCol2">
                            <%#Eval("AddressLine1") %>
                        </div>
                        <div class="DirectorateContentCol3">
                            <%#Eval("PostCode") %>
                        </div>
                        <div class="DirectorateContentCol4">
                            <%#Eval("ContactName") %>
                        </div>
                        <div class="DirectorateContentCol5">
                            <%#Eval("IsActive") %>
                        </div>
                    </div>
                </ItemTemplate>
                <AlternatingItemTemplate>
                    <div class="alterRowGrid">
                        <div class="DirectorateContentCol1">
                            <asp:LinkButton runat="server" ID="LbtName" CommandName="Edit" Text='<%#Eval("Name") %>' CommandArgument='<%#Eval("DirectorateId") %>'></asp:LinkButton></div>
                        <div class="DirectorateContentCol2">
                            <%#Eval("AddressLine1") %>
                        </div>
                        <div class="DirectorateContentCol3">
                            <%#Eval("PostCode") %>
                        </div>
                        <div class="DirectorateContentCol4">
                            <%#Eval("ContactName") %>
                        </div>
                        <div class="DirectorateContentCol5">
                            <%#Eval("IsActive") %>
                        </div>
                    </div>
                </AlternatingItemTemplate>
            </asp:Repeater>
            <div class="PagingList">
                <span>
                    <asp:Button runat="server" CssClass="backAllList" ID="cmdFisrt" OnClick="CmdFisrt_Click1" />
                </span><span>
                    <asp:Button runat="server" CssClass="backList" ID="cmdBack" OnClick="CmdBack_Click1" /></span>
                <span style="padding-left: 5px;">Page</span> <span style="padding-left: 5px;">
                    <asp:TextBox Text="1" runat="server" Width="20px" ID="txtPageNumber"></asp:TextBox></span>
                <span>of</span> <span>
                    <asp:Label runat="server" Text="1" ID="lblTotalPage"></asp:Label></span> <span>
                        <asp:Button runat="server" CssClass="nextAll" ID="cmdNext" OnClick="CmdNext_Click1" />
                    </span><span>
                        <asp:Button runat="server" CssClass="nextList" ID="cmdLast" OnClick="CmdLast_Click1" />
                    </span>
            </div>
        </div>
        <div class="spaceManager">
        </div>
    </div>
</div>